package cn.xiongxf.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseOrderDTO {
    @NotEmpty(message = "非法请求！")
    private List<Long> courseIds = new ArrayList<>();

    @NotNull(message = "请选择支付方式！")
    private Integer payType;

    @NotEmpty(message = "非法请求！")
    private String token;

    @NotNull(message = "非法请求！")
    private Integer type;
}
